package net.kosev.battleships;

import android.content.Context;

/**
 * Common utilities
 * 
 * @author Nikola
 *
 */
public class Utils {
	
	/**
	 * Convert dimension to screen independent value
	 * 
	 * @param ctx	Activity context
	 * @param value	Dimension to convert
	 * 
	 * @return	Converted dimension value
	 */
	public static final float conv(Context ctx, int value) {
		return value * ctx.getResources().getDisplayMetrics().density;
	}
	
}
